package com.tuanzi.loan.web.lazy.wallet;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.wallet.LoanUserWalletFlowService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.wallet.LoanUserWalletFlowRequest;
import com.tuanzi.loan.vo.response.wallet.LoanUserWalletFlowResponse;

public class LoanUserWalletFlowLazyDataModel extends BaseLazyDataModel<LoanUserWalletFlowRequest, LoanUserWalletFlowResponse> {

	
	private static final long serialVersionUID = 9045245954531739354L;
	
	private LoanUserWalletFlowService loanUserWalletFlowService = SpringContextHolder.getBean(LoanUserWalletFlowService.class);

	public LoanUserWalletFlowLazyDataModel(LoanUserWalletFlowRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<LoanUserWalletFlowResponse> doLoad(
			PageSearcher<LoanUserWalletFlowRequest> pageSearcher) {
		return loanUserWalletFlowService.list(pageSearcher);
	}

}
